
<div>
    <?php if (isset($page)): ?>
    <header style="text-align:center"><?php echo __('Page :page from :from - :to', array(':page' => $page, 
                                                               ':from' => ($page - 1) * 24 + 1,
                                                               ':to'   => $page * 24,)) ?>
        <a href="#" id="btn_publish" class="button_header" style="float: right;margin-top: -6px"><span><?php echo __('ˆ Back to TOP')?></span></a>
    </header>
    <?php endif ?>
    <ul class="list">
    <?php if (count($profiles)): ?>
    <?php foreach ($profiles as $profile): ?>
	<li>
            <div class="list_main_container">
                <img src="<?php echo $profile->photo;?>" alt="<?php echo $profile->name.' '.$profile->surname ?>"/>
                <div class="list_user_link"><a href="/desktop/<?php echo $profile->url ?>" class="desktop_link" title="show desktop"></a><a href="/profile/<?php echo $profile->url ?>" class="profile_link" title="show profile"></a></div>
                <div style="width: 300px">
                    <p class="mini_name ellipsis_character"><?php echo $profile->name.' '.$profile->surname ?></p>
                    <p class="mini_info ellipsis_word"><?php echo $profile->description ?></p>
                </div>
                <div class="list_standard_entre ellipsis_character" style="width: 150px">
                    <?php echo $profile->address ?>
                </div>
                <div class="list_standard_entre ellipsis_character" style="width: 150px; text-align: center">
                    <?php echo __($profile->country) ?>
                </div>
            </div>
        </li>
    <?php endforeach ?>
    <?php else: ?>
         <li>
            <div class="list_main_container">
                <div class="list_standard_entre" style="text-align: center; float: none">
                    <?php echo __('Looking for someone who\'s not on myDe.sk yet? Invite them to connect!') ?>
                </div>                   
            </div>
         </li>
    <?php endif ?>
    </ul>
</div> 
<!--
<div> 
    <?php if (isset($page)): ?>
    <header style="text-align:center"><?php echo __('Page :page from :from - :to', array(':page' => $page, 
                                                               ':from' => ($page - 1) * 24 + 1,
                                                               ':to'   => $page * 24,)) ?>
        <a href="#" id="btn_publish" class="button_header" style="float: right;margin-top: -6px"><span><?php echo __('ˆ Back to TOP')?></span></a>
    </header>
    <?php endif ?>
   <?php if (count($profiles)): ?> 
         <div class="results">
             <?php foreach ($profiles as $profile): ?>
             <div class="box_result">
                 <a href="/desktop/" class="image_result">
                     <img src="<?php echo $profile->photo ?>" alt="<?php echo $profile->name.' '.$profile->surname ?>" class="image_icon"/>
                 </a>
                 <div class="title_result"><a href="/desktop/"><?php echo Text::limit_chars($profile->name.' '.$profile->surname , 25, '...')?></a></div>
                 <div class="content_result"><a href="#"><?php echo Text::limit_chars($profile->address, 25, '...') ?></a></div>
                 <div class="footer_result"><?php echo Text::limit_chars($profile->description, 25, '...') ?></div>
             </div>
             <?php endforeach ?>
             <div style="clear: both"></div>
         </div>
    <?php else: ?>
        <ul class="list">
            <li>
                <div class="list_main_container">
                    <div class="list_standard_entre" style="text-align: center; float: none"><?php echo __('no projects to show') ?></div>                   
                </div>
            </li>
        </ul>
     <?php endif ?>
</div>
-->